#ifndef COLORPICKERDIALOG_H
#define COLORPICKERDIALOG_H

#include <QtCore>
#include <QtGui/QDialog>
#include <QtGui/QColorDialog>

namespace Ui {
    class ColorPickerDialog;
}

class ColorPickerDialog : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(ColorPickerDialog)
public:
    explicit ColorPickerDialog(QWidget *parent = 0);
    virtual ~ColorPickerDialog();
	
	void show();

public slots:
	void pickColor();
	void resetColors();
	void loadColors();
	void saveColors();
	void selectCategory(QString category);
	void selectColorKey(QString key);
	void selectedColorChanged(const QColor& selectedColor);
	
signals:
	void colorsChanged();
	
protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::ColorPickerDialog *m_ui;
	
	QColorDialog* colorDialog;
};

#endif // COLORPICKERDIALOG_H
